import { Vector3 } from '../Math/Vector3'
import { Material } from './Material'
// 双色纹理
export class BIcolorMaterial extends Material {
    readonly type: string
    brightness: number
    density: number
    speed: number
    color: Vector3
    constructor(color: Vector3 = new Vector3(1,0,0), brightness: number = 1, density: number = 10, speed: number = 1.0) {
        super()
        this.type = 'BIcolorMaterial'
        this.color = color
        this.brightness = brightness
        this.density = density
        this.speed = speed
    }
    // 亮度
    setbrightness(brightness: number) {
        this.brightness = brightness
    }
    // 条纹数量
    setdensity(density: number) {
        this.density = density
    }
    // 流动速度
    setspeed(speed: number) {
        this.speed = speed
    }
}